package com.lxy.demo.service;

import com.lxy.demo.dao.TypeMapper;
import com.lxy.demo.entity.Type;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Override
    public List<Type> findType() {
        List<Type> types = typeMapper.selectType();
        return types;
    }
}
